package com.itheima.笔记;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int num = sc.nextInt();
        int ge = num % 10;
        int shi = num / 10 % 10;
        int bai = num / 100;
        System.out.println("数字" + num + "的个位是:" + ge);
        System.out.println("数字" + num + "的十位是:" + shi);
        System.out.println("数字" + num + "的百位是:" + bai);
    }
}
